extends "../gaoxiong-3/gaoxiong-3.gd"


var baseId = ""
var upText1 = "武勋还将额外吸取目标10%血上限"
var upText2 = "击杀目标后，对目标周围1格(九宫格)的敌人造成[双攻*1]的技能伤害"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	attInfox.cri += 0.2
	attInfox.criR += 0.2
	attInfox.atk += 20
	addSkill("暴击爆伤+20%，暴击后获得2层<圣盾>", "威光")

func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType == sys.AtkType.GUN and atkInfo.isCri:
		buff.addShengDun(self, 2)

func _onKillChara(atkInfo):
	._onKillChara(atkInfo)
	if not upgraded == 2:return
	for i in getCellChas(atkInfo.hitCha.cell, 2, 1):
		if i != atkInfo.hitCha:
			azurHurtChara(i, (att.atk + att.mgiAtk)*1, sys.HurtType.WEAPON, sys.AtkType.SKILL, "现代化改造")